package com.springCloudStudy.service.impl;

import com.commons.interfaces.entities.Payment;
import com.springCloudStudy.dao.PaymentDao;
import com.springCloudStudy.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @PROJECT_NAME: SpringCloud_Study_atGuiGU
 * @NAME: PaymentServiceImpl
 * @Author: lidongming
 * @DATE: 2022/2/6
 * @Desc: payment服务类
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
